import { Module } from '@nestjs/common';
import { MoviesEpisodeService } from './movies-episode.service';
import { MoviesEpisodeController } from './movies-episode.controller';
import { jwtConstants, signOptions } from 'src/common/auth/constants';
import { JwtModule } from '@nestjs/jwt';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MoviesEpisodeEntity } from 'src/modules/admin/movies-episode/entities/movies-episode.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([MoviesEpisodeEntity,]),
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions,
    }),
  ],
  controllers: [MoviesEpisodeController],
  providers: [MoviesEpisodeService]
})
export class MoviesEpisodeModule { }
